package calculate;


public class BeaconData {
	
	private double x;
	private double y;
	private double z;
	private double distance;
	private String macAdd;
	
	public BeaconData(){
		
	}
	
	public BeaconData(double x, double y) {
		super();
		this.x = x;
		this.y = y;
	}

	public BeaconData(double x, double y, double distance) {
		super();
		this.x = x;
		this.y = y;
		setDistance(distance);
	}
	
	public BeaconData(String macAdd, double distance) {
		super();
		setDistance(distance);
		setMacAdd(macAdd);
		
	}

	public double getX() {
		return x;
	}


	public double getY() {
		return y;
	}


	public double getZ() {
		return z;
	}


	public double getDistance() {
		return distance;
	}
	
	
	public void setDistance(double distance) {
		this.distance = distance*0.26;
	}

	public String getMacAdd() {
		return macAdd;
	}

	public void setMacAdd(String macAdd) {
		
		this.macAdd = macAdd;
		if("E1:A8:40:9A:FB:48".equals(macAdd)){
			x=48;
			y=39;
		} //mint
		else if("D8:F0:8B:45:46:64".equals(macAdd)){
			x=48;
			y=15;
		}//blue
		else if("D1:F6:41:76:5A:7A".equals(macAdd)){
			x=35;
			y=25;
		}//skyblue
	}

	
	
}
